package com.example.zwl.service;

import com.example.zwl.dao.studentdao;
import com.example.zwl.pojo.student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

@Service
public class Studentservicelmpl implements Studentservice {
    @Autowired
    studentdao studao;

    @Override
    public Collection<student> yonhu() {
        return studao.yonhu();
    }

    @Override
    public int addstu(student stu) {
        return studao.addstu(stu);
    }

    @Override
    public int delete(Integer id) {
        return studao.delete(id);
    }

    @Override
    public int edit(student stu) {
        return studao.edit(stu);
    }

    @Override
    public student cha(Integer id) {
        return studao.cha(id);
    }
}
